from django.shortcuts import render
from django.http import HttpResponse
from .models import Post
def index(request):
    post_list = Post.objects.all()
    return render(request, 'blog/index.html', context={'post_list':post_list})
